Chandra-Toueg consensus in a content centric network

ABSTRACT

One embodiment provides a system that facilitates secure communication between computing entities. During operation, the system generates a first interest that indicates a vote for a value associated with a group prefix and a round number. In response to the first interest, the system receives a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator. In response to a second interest that indicates an acknowledgment of the first content object, the system receives a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator. The system verifies the second content object based on the nonce and the nonce validator.

RELATED APPLICATION

The subject matter of this application is related to the subject matter in the following applications:

-   -   U.S. patent application Ser. No. 13/847,814, entitled         “ORDERED-ELEMENT NAMING FOR NAME-BASED PACKET FORWARDING,” by         inventor Ignacio Solis, filed 20 Mar. 2013 (hereinafter “U.S.         patent application Ser. No. 13/847,814”);     -   U.S. patent application Ser. No. 12/338,175, entitled         “CONTROLLING THE SPREAD OF INTERESTS AND CONTENT IN A CONTENT         CENTRIC NETWORK,” by inventors Van L. Jacobson and Diana K.         Smetters, filed 18 Dec. 2008 (hereinafter “U.S. patent         application Ser. No. 12/338,175”);     -   U.S. patent application Ser. No. 14/476,264, entitled “SYSTEM         AND METHOD FOR MAINTAINING A DISTRIBUTED AND FAULT-TOLERANT         STATE OVER AN INFORMATION CENTRIC NETWORK,” by inventor Glenn C.         Scott, filed 3 Sep. 2014 (hereinafter “U.S. patent application         Ser. No. 14/476,264”);         the disclosures of which are herein incorporated by reference in         their entirety.

BACKGROUND

Field

This disclosure is generally related to distribution of digital content. More specifically, this disclosure is related to a system for facilitating synchronization via consensus by applying the Chandra-Toueg consensus algorithm in a content centric network.

Related Art

The proliferation of the Internet and e-commerce continues to create a vast amount of digital content. Content centric network (CCN) architectures have been designed to facilitate accessing and processing such digital content. A CCN includes entities, or nodes, such as network clients, forwarders (e.g., routers), and content producers, which communicate with each other by sending interest packets for various content items and receiving content-object packets in return. CCN interests and content objects are identified by their unique names, which are typically hierarchically structured variable length identifiers (HSVLI). An HSVLI can include contiguous name components ordered from a most general level to a most specific level.

A CCN is a distributed system where consensus among nodes is an important feature (e.g., agreeing on a single value that is the outcome of an election or an environmental observation). However, CCN nodes can crash and suffer a Byzantine failure. Consensus algorithms for a distributed system require that all processes involved in a system decision eventually terminate and that all processes decide on the same legitimate value that was proposed by some (e.g., a majority) processes. Though CCN brings many desirable features to a network, some issues remain unsolved for implementing a consensus algorithm.

SUMMARY

One embodiment provides a system that facilitates synchronization via consensus in a CCN. During operation, the system generates a first interest that indicates a vote for a value associated with a group prefix and a round number. In response to the first interest, the system receives a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator. In response to a second interest that indicates an acknowledgment of the first content object, the system receives a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator. The system verifies the second content object based on the nonce and the nonce validator.

In some embodiments, in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is the round number, the system re-transmits the first interest.

In some embodiments, in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is a next round number, the system sets the current round number to the next round number, and transmits an interest that indicates a vote for a value associated with the group prefix and the current round number.

In some embodiments, in response to not receiving the second content object before an expiration of the second interest, the system generates a third interest that indicates a negative acknowledgment of the second interest.

In some embodiments, in response to the first interest, the system receives a marker content object that has a payload which includes a future name for a content object that will correspond to the first content object. The system generates a fourth interest with a name that is the future name. In response to the fourth interest, the system receives the first content object.

In some embodiments, in response to the second interest, the system receives a marker content object that has a payload which includes a future name for a content object that will correspond to the second content object. The system generates a fourth interest with a name that is the future name. In response to the fourth interest, the system receives the second content object.

In some embodiments, the acknowledgment of the vote indicated in the first content object further indicates that a majority of a plurality of nodes with the group prefix has submitted a vote for a value that is the same as the value indicated in the first interest, and the decision for the value indicated in the second content object further indicates that a majority of a plurality of nodes with the group prefix has submitted an acknowledgment of the first content object.

In some embodiments, verifying the second content object further comprises: performing a hash on the nonce; and determining that the hash matches the nonce validator.

Another embodiment provides a system that facilitates synchronization via consensus in a CCN. During operation, the system receives a first interest that indicates a vote for a value associated with a group prefix and a round number, wherein the computer system is a coordinator for a plurality of nodes associated with the group prefix. In response to receiving the first interest, and in response to receiving a vote for the value from a majority of the nodes, the system generates a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator. In response to receiving a second interest that indicates an acknowledgment of the first content object, and in response to receiving an acknowledgment of an acknowledgment of the vote for the value from the majority of the nodes, the system generates a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator.

In some embodiments, generating the first content object further comprises: generating the nonce based on a random method; and performing a hash on the nonce to obtain the nonce validator.

In some embodiments, the system receives a third interest that indicates a negative acknowledgment of the second interest.

In some embodiments, in response to receiving the first interest, the system generates a marker content object that has a payload which includes a future name for a content object that will correspond to the first content object. In response to receiving a fourth interest with a name that is the future name, the system generates the first content object.

In some embodiments, in response to receiving the second interest, the system generates a marker content object that has a payload which includes a future name for a content object that will correspond to the second content object. In response to receiving a fourth interest with a name that is the future name, the system generates the second content object.

BRIEF DESCRIPTION OF THE FIGURES

FIG. 1 illustrates an exemplary network facilitating synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention.

FIG. 2A presents exemplary communication between a voting node and a coordinator node, in accordance with an embodiment of the present invention.

FIG. 2B presents exemplary communication between a voting node and a coordinator node, including handling of an exception, in accordance with an embodiment of the present invention.

FIG. 2C presents exemplary communication between a voting node and a coordinator node, including handling of an exception, in accordance with an embodiment of the present invention.

FIG. 3A presents a flow chart illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention.

FIG. 3B presents a flow chart illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, including exception handling, in accordance with an embodiment of the present invention.

FIG. 3C presents a flow chart illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, including exception handling and an optimization feature, in accordance with an embodiment of the present invention.

FIG. 3D presents a flow chart illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, including exception handling and an optimization feature, in accordance with an embodiment of the present invention.

FIG. 4A presents a flow chart illustrating a method by a coordinator node for facilitating synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention.

FIG. 4B presents a flow chart illustrating a method by a coordinator node for facilitating synchronization via consensus in a content centric network, including exception handling, in accordance with an embodiment of the present invention.

FIG. 4C presents a flow chart illustrating a method by a coordinator node for facilitating synchronization via consensus in a content centric network, including exception handling and an optimization feature, in accordance with an embodiment of the present invention.

FIG. 5 illustrates an exemplary computer system that facilitates synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention.

In the figures, like reference numerals refer to the same figure elements.

DETAILED DESCRIPTION

The following description is presented to enable any person skilled in the art to make and use the embodiments, and is provided in the context of a particular application and its requirements. Various modifications to the disclosed embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the present disclosure. Thus, the present invention is not limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.

Overview

Embodiments of the present invention provide a system which provides synchronization via consensus by applying the Chandra-Toueg consensus algorithm in a content centric network. In a distributed system such as a CCN, nodes can crash and suffer Byzantine failures. Consensus in such a distributed system is used to reliably determine a single value that may be the outcome of, for example, an election or environmental observations. A consensus algorithm requires that the algorithm eventually terminates and that all nodes or processes “decide” on the same valid value proposed by some correct processes. For example, in a group of N processes or nodes, the Chandra-Toueg algorithm requires at least N/2 (e.g., a majority) non-faulty or correct processes to achieve the desired outcome. A coordinator process is chosen and known to all other processes in the group. The coordinator accepts “votes” for the desired value and if a majority of the nodes decide on the same value “V,” the coordinator decides on and finalizes the value by informing all nodes of the decision for the value “V.”

Each node can maintain a timer (e.g., a failure detector) after submitting messages corresponding to its vote and its acknowledgment of the selected value. If a failure of either message is detected, the node can re-submit its vote, submit a message of a negative acknowledgment, or choose a new coordinator at the next round. Eventually, a correct coordinator will be selected and, with a majority of correctly operating nodes, a sufficient number of votes (e.g., at least N/2) will be submitted for a decision to be made by the coordinator. The correctness of the Chandra-Toueg algorithm is guaranteed based on the timers and the progression of the rounds.

The Chandra-Toueg algorithm relies on the ability of nodes to directly address each other within a group (e.g., directly push messages). In contrast, communication between CCN nodes is performed on a pull-based model using interest and content object messages. Embodiments of the present invention map the flow of messages in the Chandra-Toueg algorithm to interest and content object messages in a CCN, and also rely on native communication timeouts for CCN nodes as failure detectors. In a CCN with a plurality of voting nodes and a known coordinator node, each voting node issues to the coordinator a vote for a value in the form of an interest. The coordinator waits until it has collected a majority of votes, responds with a “vote preference acknowledgment” content object, and includes in the payload a nonce validator, y, where y is the result of a hash function performed on a randomly generated nonce, x (i.e., such that y=H(x)). The nonce validator and the nonce are subsequently used by the voting nodes for verification. After receiving the vote preference acknowledgment content object, each node issues to the coordinator an acknowledgment interest and includes in the payload the nonce validator y, which confirms that the node acknowledges the preference for the value associated with y. The coordinator waits until it has collected a majority of acknowledgment interests, responds with a “decision content object,” and includes in the payload the nonce x. Each node which submitted an acknowledgment interest then verifies the decision content object by checking that y=H(x), and if so, accepts the decision and terminates. This communication is described below in relation to FIGS. 1 and 2A.

Exceptions may occur during the communication between the voting nodes and the coordinator node. For example, the vote interest may time out, such that no vote preference acknowledgment content object is returned, or, the acknowledgment interest may time out, such that no decision content object is returned. These exceptions are described below in relation to FIGS. 2B and 2C. In some embodiments, an optimization feature allows the coordinator node to always respond immediately to both the vote interest and the acknowledgment interest by providing a content object with a payload that includes the name of a content object that will contain either the vote preference acknowledgment content object or the decision content object. This optimization feature is described below in relation to FIGS. 3C, 3D, and 4C. In addition, maintaining a distributed and fault-tolerant state for a variable over a CCN is described in U.S. patent application Ser. No. 14/476,264, which disclosure is herein incorporated by reference.

The following terms describe elements of a CCN architecture:

Content Object or “content object”: A single piece of named data, which is bound to a unique name. Content Objects are “persistent,” which means that a Content Object can move around within a computing device, or across different computing devices, but does not change. If any component of the Content Object changes, the entity that made the change creates a new Content Object that includes the updated content, and binds the new Content Object to a new unique name.

Unique Names: A name in a CCN is typically location independent and uniquely identifies a Content Object. A data-forwarding device can use the name or name prefix to forward a packet toward a network node that generates or stores the Content Object, regardless of a network address or physical location for the Content Object. In some embodiments, the name may be a hierarchically structured variable-length identifier (HSVLI). The HSVLI can be divided into several hierarchical components, which can be structured in various ways. For example, the individual name components parc, home, ccn, and test.txt can be structured in a left-oriented prefix-major fashion to form the name “/parc/home/ccn/test.txt.” Thus, the name “/parc/home/ccn” can be a “parent” or “prefix” of “/parc/home/ccn/test.txt.” Additional components can be used to distinguish between different versions of the content item, such as a collaborative document.

In some embodiments, the name can include a non-hierarchical identifier, such as a hash value that is derived from the Content Object's data (e.g., a checksum value) and/or from elements of the Content Object's name. A description of a hash-based name is described in U.S. patent application Ser. No. 13/847,814, which is hereby incorporated by reference. A name can also be a flat label. Hereinafter, “name” is used to refer to any name for a piece of data in a name-data network, such as a hierarchical name or name prefix, a flat name, a fixed-length name, an arbitrary-length name, or a label (e.g., a Multiprotocol Label Switching (MPLS) label).

Interest or “interest”: A packet that indicates a request for a piece of data, and includes a name (or a name prefix) for the piece of data. A data consumer can disseminate a request or Interest across an information-centric network, which CCN routers can propagate toward a storage device (e.g., a cache server) or a data producer that can provide the requested data to satisfy the request or Interest.

The methods disclosed herein are not limited to CCN networks and are applicable to other architectures as well. A description of a CCN architecture is described in U.S. patent application Ser. No. 12/338,175, which is hereby incorporated by reference.

Exemplary Network and Overview of Exemplary Communication

FIG. 1 illustrates an exemplary network 100 facilitating synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention. Network 100 can include a consumer or content-consuming device 116, a producer or content-producing device 118, and a router or other forwarding device at nodes 102, 104, 106, 108, 110, 112, and 114. A node can be a computer system, an end-point representing users, and/or a device that can generate interests or originate content. A node can also be an edge router (e.g., CCN nodes 102, 104, 112, and 114) or a core router (e.g., intermediate CCN routers 106-110). A group of nodes can participate in a consensus decision, and any node in the group may be chosen to act as the coordinator for a round related to the consensus decision.

Let “n” be the number of nodes in a group participating in a consensus decision, and let “r” be the current round number in which a consensus decision is to be attempted. Each node in a group has a predictable name and knows the group to which it belongs. Each group has a well-defined name prefix for routing purposes, e.g., “/group-name.” All messages are directed to and from a coordinator which is determined by the current round number r, so the prefix for all messages will be “/group-name/r mod n.”

During operation, nodes 102-114 can be seven nodes in a group participating in a consensus decision (“voting nodes”), and node 108 can be the coordinator node. Each voting node submits its vote to coordinator 108. For example, node 104 sends an interest 211 with the name “/prefix/round=r/id=<N_104>/cmd=vote” and a payload with a value of “v,” where “/prefix” is the group prefix name and “<N_104>” is an identifier for node 104. Coordinator 108 waits until it has collected a majority of votes from the group (e.g., at least n/2, which is at least 4 votes when n is equal to 7), and subsequently sends to voting node 104 (and all other nodes that submitted a vote for the round, such as node 112 that submitted its vote via interest 112) a content object 212 with a payload that has a value of “y,” where y is a nonce validator that is the result of a hash function performed on a randomly generated nonce value “x,” such that y=H(x). The nonce and nonce validator are subsequently used for verification purposes. Content object 212 is a vote preference acknowledgment.

Upon receiving content object 212, node 104 (and all other nodes that receive the vote preference acknowledgment, such as node 112 that receives content object 222) submits an acknowledgment message to coordinator 108. For example, node 104 sends an interest 213 with the name “/prefix/round=r/id=<N_104>/cmd=ack” and an empty payload. Coordinator 108 again waits until it has collected a majority of acknowledgments from the group (e.g., at least n/2, or at least 4 votes), and subsequently sends to voting node 104 (and all other nodes that submitted an acknowledgment for the round, such as node 112 that submitted its acknowledgment via interest 223) a content object 214 with a payload that has a value of “x,” where x is the randomly generated nonce that is used as the pre-image of the nonce validator y included in the payload of content object 212 (e.g., y=H(x)). Content object 214 indicates a decision for the value indicated in the votes for round r.

Upon receiving content object 214, node 104 (and all other nodes that receive the decision from coordinator 108, such as node 112 that receives content object 224) can verify the decision indicated in content object 212 by performing a hash on the nonce x (included in content object 214) and comparing it with the nonce validator y (included in content object 212). If the result matches, the voting node is assured that the decision is a valid decision for the value indicated in the vote for the current round r, and voting node 104 accepts the decision.

Thus, the system binds together the vote for the value (interest 211) and the vote preference acknowledgment (content object 212) with the acknowledgment of the vote preference acknowledgment (interest 213) and the final decision (content object 214) by using the nonce x and the nonce validator y. This allows each voting node to verify the correctness of the final decision from the coordinator (content object 214).

Detailed Description of Exemplary Communication

FIG. 2A presents an exemplary communication 200 between a voting node 104 and a coordinator node 108, in accordance with an embodiment of the present invention. During operation, node 104 generates and transmits an interest 211 to coordinator 108. Interest 211 is a vote and has a name of “/prefix/round=r/id=<i>/cmd=vote” and a payload with a value of “v,” where “prefix” is the group prefix, “r” is the current round number, and “<i>” is the identifier for node 104. Upon receiving interest 211, coordinator 108 collects a sufficient number of votes (function 202), e.g., from a majority of the voting nodes. Coordinator 118 also generates a random nonce “x” (function 204), and calculates a nonce validator “y” by performing a hash function on the nonce x. After collecting the sufficient number of votes, coordinator 108 generates and sends to node 104 a content object 212 with a name of “/prefix/round=r/id=<i>/cmd=vote” and a payload with a value of “y,” where y is the nonce validator that is the result of the hash function performed on the randomly generated nonce value x (“vote preference acknowledgment”). Note that coordinator 108 also sends a similar vote preference acknowledgement to all voting nodes in the group.

Next, upon receiving content object 212, node 104 generates and transmits an interest 213 to coordinator 108. Interest 213 is an acknowledgment of the vote preference acknowledgment and has a name of “/prefix/round=r/id=<i>/cmd=ack” and an empty payload. Upon receiving interest 213, coordinator 108 collects a sufficient number of acknowledgments (function 206), e.g., from a majority of the voting nodes. After collecting the sufficient number of acknowledgments, coordinator 108 generates and sends to node 104 a content object 214 with a name of “/prefix/round=r/id=<i>/cmd=ack” and a payload with a value of “x,” where x is the randomly generated nonce used as the pre-image of the nonce validator y (e.g., y=H(x)) (“decision content object”). Note that coordinator 118 also sends a similar decision content object to all voting nodes in the group.

Upon receiving content object 214, node 104 verifies the decision content object 214 by performing a hash on the nonce x (included in content object 214) and comparing it with the nonce validator y (included in content object 212) (function 206). If the result matches, node 104 accepts the decision and the process terminates.

Handling Exceptions During Consensus in a CCN

Communication 200 of FIG. 2A illustrates a case in which no failures occur. In most distributed systems, some message failures may occur. Embodiments of the present invention account for two possible types of message failure (from the perspective of the voting node): 1) the initial vote interest times out (i.e., a vote preference acknowledgment content object is never returned); and 2) the acknowledgment interest times out (i.e., a decision content object is never returned). The first case (initial vote interest times out) is described below in relation to FIG. 2B, and the second case (acknowledgment interest times out) is described below in relation to FIG. 2C.

FIG. 2B presents an exemplary communication 240 between a voting node 104 and a coordinator node 108, including handling of an exception, in accordance with an embodiment of the present invention. During operation, node 104 generates and transmits interest 211 to coordinator 108. Interest 211 is a vote and has a name of “/prefix/round=r/id=<i>/cmd=vote” and a payload with a value of “v.” If node 104 does not receive a responsive content object, node 104 will re-submit interest 211 (depicted within dashed box 242) until it receives a responsive vote preference acknowledgment content object (e.g., content object 212), or until the round number evolves (i.e., the group moves to round r+1) and the vote times out (function 210). Node 104 can re-submit its vote based on a time expiration of a corresponding entry in its pending interest table or any other parameter determined by the system. If the vote does not time out, the communication proceeds as described above in relation to FIG. 2A. If the vote does time out, then node 104 can send another vote for the next round by restarting the communication (not shown).

FIG. 2C presents an exemplary communication 260 between a voting node 104 and a coordinator node 108, including handling of an exception, in accordance with an embodiment of the present invention. During operation, voting node 104 and coordinator node 108 communicate as described above in relation to FIG. 2A. However, upon sending interest 213 (the acknowledgment of the vote preference acknowledgment), if node 104 does not receive a responsive content object before the expiration of interest 213 (acknowledgment timeout function 208), node 104 will submit a negative acknowledgment in the form of interest 215, which has a name of “/prefix/round=r/id=<i>/cmd=nack” and an empty payload. This negative acknowledgment interest 215 indicates that node 104 did not accept the preference because it assumes a faulty coordinator node. Node 104 then waits until the next round r+1 to submit a vote.

Role of Voting Node in Facilitating Synchronization Via Consensus

FIG. 3A presents a flow chart 300 illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention. During operation, the system generates, by a voting node, a first interest that indicates a vote for a value associated with a group prefix and a round number (operation 302). A name for the interest can be a hierarchically structured variable length identifier comprising contiguous name components ordered from a most general level to a most specific level. In response to the first interest, the system receives a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (“vote preference acknowledgment”) (operation 304). The system generates a second interest that indicates an acknowledgment of the first content object (“acknowledgment of the vote preference acknowledgment”) (operation 306). In response to the second interest, the system receives a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator (“decision content object”) (operation 308). Subsequently, the system verifies the second content object based on the nonce and the nonce validator (operation 310). The system can verify the decision content object by performing a hash on the nonce and comparing the result of the hash with the nonce validator.

FIG. 3B presents a flow chart 320 illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, including exception handling, in accordance with an embodiment of the present invention. During operation, the system generates, by a voting node, a first interest that indicates a vote for a value associated with a group prefix and a round number “r” (operation 302). The system determines whether it receives a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (“vote preference acknowledgment”) before a timeout for the first interest (decision 322). If the system does not receive a vote preference acknowledgment before the timeout for the first interest, the system determines whether the current round is still r (decision 324). If the current round is still r, the system returns to operation 302 and proceeds to generate another interest vote. If the current round is not r, the system sets the current round number to the next round number (e.g., r+1) (operation 326), returns to operation 302, and proceeds to generate another interest vote for the next round.

If the system does receive a vote preference acknowledgment before the timeout for the first interest (decision 322), the system generates a second interest that indicates an acknowledgment of the first content object (“acknowledgment of the vote preference acknowledgment”) (operation 306). The system determines whether it receives a second content object before the timeout for the second interest, where the second content object indicates a decision for the vote (e.g., the value) and has a payload that includes the nonce used as a pre-image of the nonce validator (“decision content object”) (decision 328). If the system does not receive the decision content object before the timeout for the second interest, the system generates a third interest that indicates a negative acknowledgment of the second interest (operation 330) and the operation returns. If the system does receive the decision content object before the timeout for the second interest, the operation returns.

FIG. 3C presents a flow chart 340 illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, including exception handling and an optimization feature, in accordance with an embodiment of the present invention. The optimization feature allows the coordinator node to always respond immediately to both the vote interest and the acknowledgment interest by providing a content object that indicates the name of a content object that will eventually contain the responsive content object. During operation, the system generates, by a voting node, a first interest that indicates a vote for a value associated with a group prefix and a round number “r” (operation 302). The system receives a marker content object with a payload that includes a future name for a first content object that will satisfy the first interest (operation 342). In some embodiments, the marker content object is similar to a Future object in Java. The system generates an interest with the future name for the first content object (operation 344). Subsequent decision 322 and operations 324 and 326 occur as described in relation to FIG. 3A. If the system does receive a vote preference acknowledgment before the timeout for the first interest (decision 322), the operation continues as described at Label A of FIG. 3D.

FIG. 3D presents a flow chart 360 illustrating a method by a voting node for facilitating synchronization via consensus in a content centric network, including exception handling and an optimization feature, in accordance with an embodiment of the present invention. The system generates, by the voting node, a second interest that indicates an acknowledgment of the first content object (“acknowledgment of the vote preference acknowledgment”) (operation 306). The system receives a marker content object with a payload that includes a future name for a second content object that will satisfy the second interest (operation 362). The system generates an interest with the future name for the second content object (operation 364). Subsequent decision 328 and operation 330 occur as described in relation to FIG. 3A.

Role of Coordinator Node in Facilitating Synchronization Via Consensus

FIG. 4A presents a flow chart 400 illustrating a method by a coordinator node for facilitating synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention. During operation, the system receives, by a coordinator node, a first interest that indicates a vote for a value associated with a group prefix and a round number, wherein the coordinator node is a coordinator for a plurality of nodes associated with the group prefix (operation 402). A name for the interest can be a hierarchically structured variable length identifier comprising contiguous name components ordered from a most general level to a most specific level. In response to receiving the first interest (i.e., “vote”), and in response to receiving a vote for the value from a majority of the nodes, the system generates a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (“vote preference acknowledgment”) (operation 404). The system determines the nonce validator by generating a random nonce, performing a hash on the nonce to obtain the nonce validator, and including the nonce validator in the payload of the first content object. Subsequently, the system receives a second interest that indicates an acknowledgment of the first content object (“acknowledgment of the vote preference acknowledgment”) (operation 406). In response to receiving the second interest, and in response to receiving an acknowledgment of the vote preference acknowledgment from the majority of the nodes, the system generates a second content object that indicates a decision for the value and has a payload that includes the nonce which is used as a pre-image of the nonce validator (“decision content object”) (operation 408).

FIG. 4B presents a flow chart 420 illustrating a method by a coordinator node for facilitating synchronization via consensus in a content centric network, including exception handling, in accordance with an embodiment of the present invention. FIG. 4B includes similar operations as FIG. 4A, with the addition of two decision operations (422 and 424) that cover the two possible types of message failure described above (i.e., initial vote interest time out and acknowledgment interest time out). During operation, the system receives, by a coordinator node, a first interest that indicates a vote for a value associated with a group prefix and a round number, wherein the coordinator node is a coordinator for a plurality of nodes associated with the group prefix (operation 402). The system determines whether it receives a vote for the value from a majority of the nodes (decision 422) (e.g., if it has collected sufficient votes). If it does not, the system waits to collect sufficient votes and returns to operation 402. If it does, the system generates a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (“vote preference acknowledgment”) (operation 404). Subsequently, the system receives a second interest that indicates an acknowledgment of the first content object (“acknowledgment of the vote preference acknowledgment”) (operation 406). The system determines whether it receives an acknowledgment of the vote preference acknowledgment from the majority of the nodes (decision 424). If it does not, the system waits to collect sufficient acknowledgments and returns to operation 406. If it does, the system generates a second content object that indicates a decision for the value and has a payload that includes the nonce which is used as a pre-image of the nonce validator (“decision content object”) (operation 408).

FIG. 4C presents a flow chart 440 illustrating a method by a coordinator node for facilitating synchronization via consensus in a content centric network, including exception handling and an optimization feature, in accordance with an embodiment of the present invention. FIG. 4C includes similar operations as FIG. 4B, with the addition of two operations (442 and 444) that cover the optimization feature of allowing the coordinator node to always respond immediately to received interests (i.e., a vote interest and an acknowledgment of the vote preference acknowledgment). During operation, the system receives, by a coordinator node, a first interest that indicates a vote for a value associated with a group prefix and a round number, wherein the coordinator node is a coordinator for a plurality of nodes associated with the group prefix (operation 402). The system generates a marker content object with a payload that includes a future name for a first content object that will satisfy the first interest (operation 442). The system determines whether it receives a vote for the value from a majority of the nodes (decision 422) (e.g., if it has collected sufficient votes). If it does not, the system waits to collect sufficient votes and returns to operation 402. If it does, the system generates a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (“vote preference acknowledgment”) (operation 404). Subsequently, the system receives a second interest that indicates an acknowledgment of the first content object (“acknowledgment of the vote preference acknowledgment”) (operation 406). The system generates a marker content object with a payload that includes a future name a second content object that will satisfy the second interest (operation 444). The system determines whether it receives an acknowledgment of the vote preference acknowledgment from the majority of the nodes (decision 424). If it does not, the system waits to collect sufficient acknowledgments and returns to operation 406. If it does, the system generates a second content object that indicates a decision for the value and has a payload that includes the nonce which is used as a pre-image of the nonce validator (“decision content object”) (operation 408).

Exemplary Computer System

FIG. 5 illustrates an exemplary computer system 502 that facilitates synchronization via consensus in a content centric network, in accordance with an embodiment of the present invention. Computer system 502 includes a processor 504, a memory 506, and a storage device 508. Memory 506 can include a volatile memory (e.g., RAM) that serves as a managed memory, and can be used to store one or more memory pools. Furthermore, computer system 502 can be coupled to a display device 510, a keyboard 512, and a pointing device 514. Storage device 508 can store an operating system 516, a content-processing system 518, and data 530.

Content-processing system 518 can include instructions, which when executed by computer system 502, can cause computer system 502 to perform methods and/or processes described in this disclosure. Specifically, content-processing system 518 may include instructions for sending and/or receiving data packets to/from other network nodes across a computer network, such as a content centric network, where a data packet can correspond to an interest or a content-object packet with a name and a payload (communication module 520). Content-processing system 518 may include instructions for generating a first interest that indicates a vote for a value associated with a group prefix and a round number (packet-constructing module 524). Content-processing system 518 may include instructions for, in response to the first interest, receiving a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (communication module 520). Content-processing system 518 may include instructions for, in response to a second interest that indicates an acknowledgment of the first content object, receiving a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator (communication module 520). Content-processing system 518 may include instructions for verifying the second content object based on the nonce and the nonce validator (packet-verifying module 528).

Content-processing system 518 can include instructions for, in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is the round number (exception-handling module 526), re-transmitting the first interest (communication module 520). Content-processing system 518 can include instructions for, in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is a next round number (exception-handling module 526), setting the current round number to the next round number (exception-handling module 526), and transmitting an interest that indicates a vote for a value associated with the group prefix and the current round number (communication module 520). Content-processing system 518 can include instructions for, in response to not receiving the second content object before an expiration of the second interest (exception-handling module 526), generating a third interest that indicates a negative acknowledgment of the second interest (packet-constructing module 524).

Content-processing system 518 can include instructions for, in response to the first interest, receiving a marker content object that has a payload which includes a future name for a content object that will correspond to the first content object (communication module 520). Content-processing system 518 can include instructions for generating a fourth interest with a name that is the future name (packet-constructing module 524), and, in response to the fourth interest, receiving the first content object (communication module 520). Content-processing system 518 can include instructions for, in response to the second interest, receiving a marker content object that has a payload which includes a future name for a content object that will correspond to the second content object (communication module 520). Content-processing system 518 can include instructions for generating a fourth interest with a name that is the future name (packet-constructing module 524), and, in response to the fourth interest, receiving the second content object (communication module 520). Content-processing system 518 can include instructions for performing a hash on the nonce and determining that the hash matches the nonce validator (packet-verifying module 528)

Content-processing system 518 can further include instructions for receiving a first interest that indicates a vote for a value associated with a group prefix and a round number (communication module 520). Content-processing system 518 can include instructions for, in response to receiving the first interest (communication module 520), and in response to receiving a vote for the value from a majority of the nodes (packet-processing module 522), generating a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator (packet-constructing module 524). Content-processing system 518 can include instructions for, in response to receiving a second interest that indicates an acknowledgment of the first content object (communication module 520), and in response to receiving an acknowledgment of an acknowledgment of the vote for the value from the majority of the nodes (packet-processing module 522), generating a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator (packet-constructing module 524). Content-processing system 518 can include instructions for generating the nonce based on a random method and performing a hash on the nonce to obtain the nonce validator (packet-verifying module 528). Content-processing system 518 can include instructions for receiving a third interest that indicates a negative acknowledgment of the second interest (communication module 520).

Content-processing system 518 can include instructions for, in response to receiving the first interest (communication module 520), generating a marker content object that has a payload which includes a future name for a content object that will correspond to the first content object (packet-constructing module 524). Content-processing system 518 can include instructions for, in response to receiving a fourth interest with a name that is the future name, the system generating the first content object (packet-constructing module 524).

Content-processing system 518 can include instructions for, in response to receiving the second interest (communication module 520), generating a marker content object that has a payload which includes a future name for a content object that will correspond to the second content object (packet-constructing module 524). Content-processing system 518 can include instructions for, in response to receiving a fourth interest with a name that is the future name (communication module 520), generating the second content object (packet-constructing module 524).

Data 530 can include any data that is required as input or that is generated as output by the methods and/or processes described in this disclosure. Specifically, data 530 can store at least: an interest packet; a content-object packet; a vote; a value for a decision; a vote for a value; a group prefix; a round number; a nonce; a nonce validator that is the result of a hash function performed on the nonce; a first interest that indicates a vote for a value associated with a group prefix and a round number; a first content object that indicates an acknowledgment of the vote and has a payload that includes a nonce validator; a second interest that indicates an acknowledgment of the first content object; a second content object that indicates a decision for the value and has a payload that includes a nonce which is used as a pre-image of the nonce validator; a timeout or expiration time for the first or second interest; a third interest that indicates a negative acknowledgment of the second interest; a marker content object that has a payload which includes a future name for a content object that will correspond to the first content object or the second content object; a future name; a fourth interest with a name that is the future name; and an indicator of a majority of a plurality of nodes that share a same group prefix.

The data structures and code described in this detailed description are typically stored on a computer-readable storage medium, which may be any device or medium that can store code and/or data for use by a computer system. The computer-readable storage medium includes, but is not limited to, volatile memory, non-volatile memory, magnetic and optical storage devices such as disk drives, magnetic tape, CDs (compact discs), DVDs (digital versatile discs or digital video discs), or other media capable of storing computer-readable media now known or later developed.

The methods and processes described in the detailed description section can be embodied as code and/or data, which can be stored in a computer-readable storage medium as described above. When a computer system reads and executes the code and/or data stored on the computer-readable storage medium, the computer system performs the methods and processes embodied as data structures and code and stored within the computer-readable storage medium.

Furthermore, the methods and processes described above can be included in hardware modules. For example, the hardware modules can include, but are not limited to, application-specific integrated circuit (ASIC) chips, field-programmable gate arrays (FPGAs), and other programmable-logic devices now known or later developed. When the hardware modules are activated, the hardware modules perform the methods and processes included within the hardware modules.

The foregoing descriptions of embodiments of the present invention have been presented for purposes of illustration and description only. They are not intended to be exhaustive or to limit the present invention to the forms disclosed. Accordingly, many modifications and variations will be apparent to practitioners skilled in the art. Additionally, the above disclosure is not intended to limit the present invention. The scope of the present invention is defined by the appended claims. 

What is claimed is:
 1. A computer system for facilitating synchronization via consensus between a plurality of nodes in a content centric network using interests and content objects to communicate between the plurality of nodes in the content centric network, the system comprising: a processor; and a storage device storing instructions that when executed by the processor cause the processor to perform a method, the method comprising: generating a first interest that includes a name and a payload, wherein a name in the content centric network is a hierarchically structured variable length identifier comprising contiguous name components ordered from a most general level to a most specific level, wherein the name of the first interest indicates a vote and a round number, and wherein the payload of the first interest includes a value associated with a group prefix, wherein the plurality of nodes are associated with the group prefix for routing within the content centric network; in response to the first interest, receiving a first content object that includes a name and a payload, wherein the name of the first content object indicates an acknowledgment of the vote, and wherein the payload of the first content object includes a nonce validator; generating a second interest having a name that indicates an acknowledgment of the first content object, and wherein a payload of the second interest is empty; in response to the second interest, receiving a second content object that includes a name and a payload, wherein the name of the second content object indicates a decision for the value, and wherein the payload of the second content object includes a nonce which is used as a pre-image of the nonce validator; verifying the second content object based on the nonce and the nonce validator; and based on the verifying, determining that the decision for the value associated with the group prefix of the plurality of nodes indicated by the vote is a valid decision-determined by consensus of the plurality of nodes, thereby achieving synchronization via consensus among the plurality of nodes in the content centric network.
 2. The computer system of claim 1, wherein the method further comprises: in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is the round number: re-transmitting the first interest.
 3. The computer system of claim 1, wherein the method further comprises: in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is a next round number: setting the current round number to the next round number; and transmitting another interest that includes a name and a payload, wherein the name of the another interest indicates a vote and the current round number, and wherein the payload of the another interest includes a value associated with the group prefix.
 4. The computer system of claim 1, wherein the method further comprises: in response to not receiving the second content object before an expiration of the second interest, generating a third interest that indicates a negative acknowledgment of the second interest.
 5. The computer system of claim 1, wherein the method further comprises: in response to the first interest, receiving a marker content object that has a payload which includes a future name for a content object that will correspond to the first content object; generating a fourth interest with a name that is the future name; and in response to the fourth interest, receiving the first content object.
 6. The computer system of claim 1, wherein the method further comprises: in response to the second interest, receiving a marker content object that has a payload which includes a future name for a content object that will correspond to the second content object; generating a fourth interest with a name that is the future name; and in response to the fourth interest, receiving the second content object.
 7. The computer system of claim 1, wherein the acknowledgment of the vote indicated in the first content object further indicates that a majority of the plurality of nodes with the group prefix has submitted a vote for a value that is the same as the value indicated in the first interest, and wherein the decision for the value indicated in the second content object further indicates that a majority of the plurality of nodes with the group prefix has submitted an acknowledgment of the first content object.
 8. The computer system of claim 1, wherein verifying the second content object further comprises: performing a hash on the nonce; and determining that the hash matches the nonce validator.
 9. A computer-implemented method for facilitating synchronization via consensus between a plurality of nodes in a content centric network using interests and content objects to communicate between the plurality of nodes in the content centric network, the method comprising: generating a first interest that includes a name and a payload, wherein a name in the content centric network is a hierarchically structured variable length identifier comprising contiguous name components ordered from a most general level to a most specific level, wherein the name of the first interest indicates a vote and a round number, and wherein the payload of the first interest includes a value associated with a group prefix, wherein the plurality of nodes are associated with the group prefix for routing within the content centric network; in response to the first interest, receiving a first content object that includes a name and a payload, wherein the name of the first content object indicates an acknowledgment of the vote, and wherein the payload of the first content object includes a nonce validator; generating a second interest having a name that indicates an acknowledgment of the first content object, and wherein a payload of the second interest is empty; in response to the second interest, receiving a second content object that includes a name and a payload, wherein the name of the second content object indicates a decision for the value, and wherein the payload of the second content object includes a nonce which is used as a pre-image of the nonce validator; verifying the second content object based on the nonce and the nonce validator; and based on the verifying, determining that the decision for the value associated with the group prefix of the plurality of nodes indicated by the vote is a valid decision determined by consensus of the plurality of nodes, thereby achieving synchronization via consensus among the plurality of nodes in the content centric network.
 10. The method of claim 9, further comprising: in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is the round number: re-transmitting the first interest.
 11. The method of claim 9, further comprising: in response to not receiving the first content object before an expiration of the first interest, and in response to determining that a current round number is a next round number: setting the current round number to the next round number; and transmitting another interest that includes a name and a payload, wherein the name of the another interest indicates a vote and the current round number, and wherein the payload of the another interest includes a value associated with the group prefix.
 12. The method of claim 9, further comprising: in response to not receiving the second content object before an expiration of the second interest, generating a third interest that indicates a negative acknowledgment of the second interest.
 13. The method of claim 9, further comprising: in response to the first interest, receiving a first marker content object that has a payload which includes a future name for a content object that will correspond to the first content object; generating a fourth interest with a name that is the future name; in response to the fourth interest, receiving the first content object; in response to the second interest, receiving a second marker content object that has a payload which includes a future name for a content object that will correspond to the second content object; generating a fifth interest with a name that is the future name; and in response to the fifth interest, receiving the second content object.
 14. The method of claim 9, wherein the acknowledgment of the vote indicated in the first content object further indicates that a majority of a plurality of nodes with the group prefix has submitted a vote for a value that is the same as the value indicated in the first interest, and wherein the decision for the value indicated in the second content object further indicates that a majority of a plurality of nodes with the group prefix has submitted an acknowledgment of the first content object.
 15. The method of claim 9, wherein verifying the second content object further comprises: performing a hash on the nonce; and determining that the hash matches the nonce validator.
 16. The computer system of claim 1, wherein the plurality of nodes includes n number of nodes; and wherein consensus of the plurality of nodes is reached when a value receives at least n/2 votes.
 17. The computer system of claim 1, wherein the plurality of nodes includes a plurality of voting nodes and a coordinator node.
 18. The computer system of claim 17, wherein the coordinator node determines that the decision for the value associated with the group prefix of the plurality of nodes indicated by the vote is a valid decision determined by consensus of the plurality of nodes.
 19. The method of claim 9, wherein the plurality of nodes includes n number of nodes; and wherein consensus of the plurality of nodes is reached when a value receives at least n/2 votes.
 20. The method of claim 9, wherein the plurality of nodes includes a plurality of voting nodes and a coordinator node; and wherein the coordinator node determines that the decision for the value associated with the group prefix of the plurality of nodes indicated by the vote is a valid decision determined by consensus of the plurality of nodes. 